﻿using SEComEnabler.SEComStructure;
using TKT.Lifter.CIM.Lifter.HSMSMsg.HSMSConstant;

namespace TKT.Lifter.CIM.Lifter.HSMSMsg.TransferActionMsg
{
    public class S1F1
    {
        public static SXTransaction MakeTransactionSend()
        {
            SXTransaction sXTransaction = new SXTransaction();
            sXTransaction.Stream = 1;
            sXTransaction.Function = 1;
            sXTransaction.Wait = true;
            sXTransaction.MessageData = "Are you there request.";
            sXTransaction.WriteNode(SX.SECSFormat.L, 2, "", "Are you there", new int[0]);
            sXTransaction.WriteNode(SX.SECSFormat.A, MsgConstant.CONST_MDLN.Length, MsgConstant.CONST_MDLN, "MDLN", new int[0]);
            sXTransaction.WriteNode(SX.SECSFormat.A, MsgConstant.CONST_SOFTREV.Length, MsgConstant.CONST_SOFTREV, "SOFTVER", new int[0]);
            return sXTransaction;
        }
        public static SXTransaction MakeTransactionACK()
        {
            SXTransaction sXTransaction = new SXTransaction();
            sXTransaction.Stream = 1;
            sXTransaction.Function = 2;
            sXTransaction.Wait = false;
            sXTransaction.MessageData = "I am Here.";
            sXTransaction.WriteNode(SX.SECSFormat.L, 2, "", "IamHere", new int[0]);
            sXTransaction.WriteNode(SX.SECSFormat.A, MsgConstant.CONST_MDLN.Length, MsgConstant.CONST_MDLN, "MDLN", new int[0]);
            sXTransaction.WriteNode(SX.SECSFormat.A, MsgConstant.CONST_SOFTREV.Length, MsgConstant.CONST_SOFTREV, "SOFTVER", new int[0]);
            return sXTransaction;
        }
    }
}
